import com.bite.demo1.Test;

/**
 * @Author 12629
 * @Description：
 */
public class Student {

    private String name;
    private int age;
    private static String classRoom = "115Java";

    public Student() {
        //this("wusong");
        System.out.println("不带参数的构造方法...");
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
        System.out.println("带2个参数的构造方法...");
    }

    /*public Student(String name, int age, String classRoom) {
        this.name = name;
        this.age = age;
        this.classRoom = classRoom;
    }*/

    public Student(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void doClass() {
        getClassRoom();
        System.out.println(this.name+" 上课");
    }

    public static String getClassRoom() {
        /*Student student1 = new Student("zhangsan",10);
        student1.doClass();
        System.out.println(student1.name+" 上课");*/
        return classRoom;
    }

    public static void main(String[] args) {
        Test test = new Test();
    }
}
